import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const Uid = "uid"
const Rid = "rid"
export function getToken() {
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}
export function getUid() {
    return Cookies.get(Uid)
}
export function setUid(uid) {
    return Cookies.set(Uid, uid)
}
export function removeUid() {
    return Cookies.remove(Uid)
}
export function getRid() {
    return Cookies.get(Rid)
}
export function setRid(rid) {
    return Cookies.set(Rid, rid)
}
export function removeRid() {
    return Cookies.remove(Rid)
}